﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Content;

namespace RPG_The_Game.Cenas
{
    public static class CenasManager
    {
        static Cena_Intro cena_intro;

        public enum Cenas
        {
            INTRO, MENU, CREDITOS, JOGAR, PAUSA, THE_END, GAME_OVER
        }

        public static List<CenaMae> listaCenas = new List<CenaMae>();

        public static Cenas cena_atual;

        public static void Load(ContentManager Content, GameWindow Window)
        {
            cena_intro = new Cena_Intro(Content, Window);
        }

        public static void Update(GameTime gameTime)
        {
            switch (cena_atual)
            {
                case Cenas.INTRO:
                    CenasManager.cena_intro.Update(gameTime);
                    break;
                
                case Cenas.JOGAR:
                    break;
            }
        }

        public static void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            switch (cena_atual)
            {
                case Cenas.INTRO:
                    CenasManager.cena_intro.Draw(gameTime, spriteBatch);
                    Console.WriteLine(listaCenas);
                    break;

                case Cenas.JOGAR:
                    break;
            }
        }

    }
}
